import Mock from 'mockjs'
import finddatabytopApi from './finddatabytop'
import finddataApi from './finddata.js'
import exportApi from './export.js'
import permissionApi from './permission'
import getlistApi from './getlist'

// 登录接口
Mock.mock('http://120.76.134.23/getLogin', 'post', permissionApi.getToken)

// 动态显示列表和图表数据的接口
Mock.mock('http://120.76.134.23/finddatabytop', 'post', finddatabytopApi.findDatabytop)

// 查询请求接口，模拟后端接口每天的数据，携带参数-对应输入日期，返回对应日期数据
Mock.mock('http://120.76.134.23/finddata', 'post', finddataApi.findData)

// excel导出接口
Mock.mock('http://120.76.134.23/exportexcel', 'post', exportApi.excelExport)

// selectIndtrument设备任务列表初始化
Mock.mock('http://120.76.134.23/getlist', 'get', getlistApi.getList)
